// app.js
import './utils/utils'
import './utils/http'
App({
  // 个人信息的初始值
  userInfo: { avatar: '', nickName: '微信用户' },
  getToken(type = 'token') {
    return wx.getStorageSync(type)
  },
  setToken(type, value) {
    //type: token, refresh_token
    this[type] = value
    // 本地存储
    wx.setStorageSync(type, value)
  },
  globalData: {},
})
